const mongoose = require('./connection')

const cartSchema = new mongoose.Schema({
    menuid: String,  // 商品id
    num: Number,  // 数量
    speandkind: String,  // 种类
    userid: String  // 用户id
})

const cartModel = mongoose.model('cart', cartSchema,'cart')

module.exports = cartModel

// 购物车